package com.wn.procurement.openfeign;

import com.wn.common.ActivitiCompleteEntity;
import com.wn.common.ActivitiHistoryInfoEntity;
import com.wn.common.ActivitiStartEntity;
import com.wn.common.ResponseEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "activiti")
public interface ActivitiFeignClient {

    @RequestMapping("/activiti/startInstance")
    ResponseEntity startInstance(@RequestBody ActivitiStartEntity entity);

    @RequestMapping("/activiti/completeTask")
    ResponseEntity completeTask(@RequestBody ActivitiCompleteEntity entity);

    @RequestMapping("/activiti/historyInfo")
    ResponseEntity historyInfo(@RequestBody ActivitiHistoryInfoEntity entity);

}
